<?php
    if($query->num_rows()>0){
        $profile = $query->row();
        $identity = $profile->ident;
        $nom = $profile->first_name;
        $prenom = $profile->last_name;
        $addr = $profile->addr;
        $email = $profile->email;
        $tel = $profile->tel;
        $experience = $profile->experience;
        $dispo = $profile->disponible;
        $img = $profile->img;
        $id = $profile->id;
    }
?>

<div class="bajouter" align="center">Modifier une profile</div>
<div style="padding:10px 0px 0px 40px;">
    <form   method="POST" id="formcheck" action="<?php echo site_url('seating_admin/update_gardient').'/'.$id?>" enctype="multipart/form-data">
        <table width="100%" id="formactu" cellpadding="10px" cellspacing="0">
            <tr><td><span>Identifiant </span><input  type="text" readonly="readonly" name="ident" value="<?php echo $identity;?>" /><br/></td></tr>
            <tr><td><span>Nom </span><input  type="text"   name="nom" value="<?php echo $nom;?>" /><br/></td></tr>
            <tr><td><span>Prenom </span><input  type="text"  name="prenom" value="<?php echo $prenom;?>" /><br/></td></tr>
            <tr><td><span>Addresse </span><input  type="text"  name="addr" value="<?php echo $addr;?>" /><br/></td></tr>
            <tr><td><span>Email </span><input  type="text"  name="email" mvalue="<?php echo $email;?>" /><br/></td></tr>
            <tr><td><span>Telephone </span><input  type="text"  name="tel" value="<?php echo $tel?>" /><br/></td></tr>
            <tr><td><span>Experience </span><input  type="text"  name="experience" value="<?php echo $experience;?>" /><br/></td></tr>
            <tr><td><span>Avatar </span><input  type="file"  name="userfile" value="<?php echo $img;?>" /><br/></td></tr>
            <tr><td><input type="submit" name="submit"  border="0" src="<?php echo base_url().'assets/css/'?>images/ajouter.png"  value="Submit" alt="Submit"></td>
            
        </table>
       <?php echo validation_errors(); ?>
    </form>
</div>
